package dao

type User struct {
	Uid         int    `gorm:"column:user_id" json:"uid" form:"uid"`                      //用户id
	Name        string `gorm:"column:user_name" json:"name" form:"name"`                  //昵称
	Tel         string `gorm:"column:tel" json:"tel" form:"tel"`                          //电话
	Sex         string `gorm:"column:sex" json:"sex" form:"sex"`                          //性别
	Email       string `gorm:"column:email" json:"email" form:"email"`                    //邮箱
	Fans        int    `gorm:"column:fans" json:"fans" form:"fans"`                       //粉丝数量
	Password    string `gorm:"column:password" json:"password" form:"password"`           //密码
	Focus       int    `gorm:"column:focus" json:"focus" form:"focus"`                    //关注数
	ReportCount int    `gorm:"column:report_count" json:"reportCount" form:"reportCount"` //举报数
	HeadImgPath string `gorm:"column:headimg" json:"headImgPath" form:"headImgPath"`      //存放头像路径
}

func (User) TableName() string {
	return "user"
}
